package edu.bbu.license.client.android.gui.main;

import android.content.Intent;
import android.os.Bundle;
import edu.bbu.license.client.android.controller.main.MainController;
import edu.bbu.license.client.android.gui.BaseActivity;
import edu.bbu.license.client.android.gui.files.FilesActivity;
import edu.bbu.license.client.android.gui.guest.GuestActivity;

public class MainActivity extends BaseActivity implements MainView {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		MainController.getInstance().atach(this);
	}
	
	@Override
	public void openGuestView() {
		startActivity(new Intent(this, GuestActivity.class));
	}
	
	@Override
	public void openFilesView() {
		startActivity(new Intent(this, FilesActivity.class));
	}
	
	@Override
	public void closeView() {
		finish();		
	}
}
